package com.atguigu.fruit.conntroller.Impl;

import com.atguigu.fruit.conntroller.FruitController;
import com.atguigu.fruit.service.FruitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class FruitControllerImpl implements FruitController {
    @Autowired
  private   FruitService fruitService;
    @Override
    public void getFruits() {
       fruitService.getFruits().forEach(System.out::println);
    }

}
